

nav {
  position: -webkit-sticky; 
  position: sticky;
  top: 0;
  margin: 0;
  z-index: 98;
}

ul.nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  /* position: -webkit-sticky; 
  position: sticky;
  top: 0; */
  overflow: hidden;
  background-color: var(--main-nav-color);
  z-index: 99;
  box-shadow: 0px 4px 4px var(--main-sd-color); 
}


li.nav{
  float: left;
}

#slider{
  padding-top: 4px;
  font-size: 9px;
  float: none;
  text-align: center;
}

a.nav {
  display: block;
  color: white;
  text-align: center;
  font-size: 20px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background-color 0.3s;
  -webkit-transition: background-color 0.3s;
}

a.nav:active, a.nav:hover{
  background-color: rgb(120, 120, 120);
  cursor: pointer;
}

#active{
  background-color: var(--main-ac-color);
}



/*? For toggle switches (checkboxes) */

.darkModeSwitch{
  float: right;
  right: 10px;
  top: 50%;
  transform: translate(0, -50%);
  height: 34px;
  position: absolute;
  width: 60px;
}

.darkModeSwitch input {
  display:none;
}

.darkModeSlider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.darkModeSlider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
  border-radius: 50%;
}

input:checked + .darkModeSlider {
  background-color: var(--main-ac-color);
}

input:checked + .darkModeSlider:before {
  transform: translateX(26px);
}

/* ?Phone nav nav */
/* 
ul.mobNavnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  height: auto;
  width: 100vw;
  display: none;
  top: 0; 
  background-color: rgb(49, 49, 49);
  z-index: 1;
  box-shadow: 0px 4px 4px var(--main-sd-color); 
  overflow-x: hidden;
  position: fixed;
}

li.mobNavOpen {
  float: left;
  font-size: 40px;
}
ul.mobNavnav li a {
  display: block;
  color: white;
  text-align: center;
  font-size: 20px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background-color 0.3s;
  -webkit-transition: background-color 0.3s;
} */

/* ? Phone Nav */
/* ul.mobNav {
  list-style-type: none;
  display: none;
  height: 100%;
  width: 0;
  margin: 0;
  padding: 0;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  background-color: rgb(34, 34, 34);
  overflow-x: hidden;
  padding-top: 15vh;
  transition: 0.4s;
  -webkit-transition: 0.4s;
}
li.mobNav {
  text-align: center;
  height: auto;
  padding-top: 10px;
  margin-top: 10px;
  display: block;
  transition: 0.3s;
  -webkit-transition: 0.3s;
}
a.mobNav{
  text-decoration: none;
  font-size: 40px;
  color: #ffffff;
}

a.mobNav i{
  text-decoration: none;
  font-size: 30px;
  color: #ffffff;
}

.mobNav .closeBtn{
  position: absolute;
  color: #ffffff;
  text-decoration: none;
  top: 3vw;
  right: 5vw;
  font-size: 50px;
  margin-left: 50px;
}

div.mobNav {
  width: 0vw;
  height: 100vh;
  top: 0;
  z-index: 98;
  display: none;
  position: fixed;
  background-color: rgb(0, 0, 0, 0.6);
  transition: .4s;
  -webkit-transition: .4s;
} */


/* ? end */

/* 
@media only screen and (max-width: 600px) {
  .nav {
    display: none;
  }
  ul.nav{
    position: inherit;
    display: none;
  }
  .darkModeSwitch{
    display: none;
  }

  ul.mobNav {
    display: initial;
  }

  ul.mobNavnav {
    display: initial;
  }
} */